package com.wwwc.index.web.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.*;
import javax.servlet.http.*;

public class PrintServlet  extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
    {
	try {
	    HttpSession session  = request.getSession(true);
	    PrintWriter out = response.getWriter();
	    response.setContentType("text/html");
	    StringBuffer sbf = (StringBuffer)session.getAttribute("PrintBuffer");
	    if(sbf != null) {
		out.println(sbf);
	    }
	}
	catch (Exception e) {
	    System.out.println("PrintServlet:Error:"+e);
	}
    }
}
